package com.jmazgaj.satel.utils;

public class ArrayUtils {
	public static final boolean[] toBooleanArray(byte[] bytes) {
		boolean [] out = new boolean[bytes.length * 8];
		
		for(int j = 0; j < bytes.length; j++) {
			int mask = 1;
			for(int i = 0; i < 8; i++) {
				out[j * 8 + i] = ((bytes[j] & mask) != 0);
				mask <<= 1;
			}
		}
		
		return out;
	}
}
